package com.gary.dataPermission;
import com.gary.bean.BaseEntity;

import java.util.List;

/**
 * 数据权限过滤-权限规则实体类
 *
 * <p> Madison.lu </p>
 * <p>Version: 1.0.0</p>
 * <p>Create Date： 2019/11/5 16:37 </p>
 * <p>Copyright (c) 2017 ~ 2019 Allchips版权所有</p>
 */
public class QueryFilterRuleTree extends BaseEntity {

    /**
     * id
     */
    private Integer id;
    /**
     * 父节点id
     */
    private Integer parentId;
    /**
     * 是否是父节点，10不是；20是
     */
    private Integer parent;
    /**
     * 连接条件 and或or或null
     */
    private String linkOption;
    /**
     * 变量还是常量，10常量；20变量；
     */
    private Integer operationType;
    /**
     * 字段名
     */
    private String field;
    /**
     * 判断条件，= 、<=、in、not in等
     */
    private String option;
    /**
     * 字段类型
     */
    private String type;
    /**
     * 条件值
     */
    private String value;
    /**
     * 子节点
     */
    private List<QueryFilterRuleTree> child;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public String getLinkOption() {
        return linkOption;
    }

    public void setLinkOption(String linkOption) {
        this.linkOption = linkOption;
    }

    public Integer getOperationType() {
        return operationType;
    }

    public void setOperationType(Integer operationType) {
        this.operationType = operationType;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getOption() {
        return option;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public List<QueryFilterRuleTree> getChild() {
        return child;
    }

    public void setChild(List<QueryFilterRuleTree> child) {
        this.child = child;
    }
}
